import {MyRequest} from "@/utils/request.js"

//分组列表
export function groupList(userId){
	return MyRequest({
		method:'GET',
		url:`/api/userGroup/groupList?userId=${userId}`,
	})
}

//添加分组
export function addgroup(obj){
	return MyRequest({
		method:'POST',
		url:`/api/userGroup/add?memberId=${obj.memberId}&groupName=${obj.groupName}`,
	})
}

//删除分组
export function remgroup(obj){
	return MyRequest({
		method:'POST',
		url:`/api/userGroup/delete?userId=${obj.userId}&groupId=${obj.groupId}`,
	})
}